var config = require('./config.js');
function GET(url, data, success, fail) {
  wx.request({
    method: "GET",
    url: config.host + url,
    data: data,
    success: function (res) {
      success(res);
    }
  })
}
function POST(url, data, success, fail) {
  wx.request({
    method: "POST",
    url: config.host + url,
    data: data,
    success: function (res) {
      success(res);
    }
  })
}
module.exports = {
  GET:GET,
  POST: POST,
}